package com.hqyj.lx.service.impl;

import com.hqyj.lx.dao.ScoreDao;
import com.hqyj.lx.pojo.Score;
import com.hqyj.lx.service.ScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ScoreServiceImpl implements ScoreService {
    @Autowired
    private ScoreDao scoreDao;
    @Override
    public List<Score> queryStudentScoreByName(String sName) {
        return scoreDao.queryStudentScoreByName(sName);
    }

    @Override
    public List<Score> queryStudentScore() {
        return scoreDao.queryStudentScore();
    }

    @Override
    public List<Score> queryMyScore(String sName) {
        return scoreDao.queryMyScore(sName);
    }
}
